package com.zhengqiangblog.core;

public class Result {

	public final static String SUCCESS = "success";
	public final static String ERROR = "error";
	public final static String INPUT = "input";
	public final static String JSON = "json";
	public final static String HOME = "home";

	private String name;
	private String value;
	private ResultType resultType;

	public Result() {
	}

	public Result(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public Result(String name, String value, ResultType resultType) {
		this.name = name;
		this.value = value;
		this.resultType = resultType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public ResultType getResultType() {
		return resultType;
	}

	public void setResultType(ResultType resultType) {
		this.resultType = resultType;
	}

}
